package com.xu.commons.config;

import java.util.Properties;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

public class ConfigUtils extends PropertyPlaceholderConfigurer{
		private static Properties properties;
	  @Override
	    protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props){
		  
		  this.properties =props;
		  
	  }
	
	  public static String getProperties(String name){
		  
		  return properties.getProperty(name);
	  }

}
